<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Entry_year')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-entry_year" data-rule="required" class="form-control" name="row[entry_year]" type="number" value="{$row.entry_year|htmlentities}">
        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lovers_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lovers_id" data-rule="required" data-source="lovers/index" class="form-control selectpage" name="row[lovers_id]" type="text" value="{$row.lovers_id|htmlentities}">
        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Has_apply')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-has_apply" data-rule="required" class="form-control selectpicker" name="row[has_apply]">
                {foreach name="hasApplyList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.has_apply"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weeksday')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weeksday" data-rule="required" class="form-control" name="row[weeksday]" type="number" value="{$row.weeksday|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Table_bgimage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-table_bgimage" class="form-control" size="50" name="row[table_bgimage]" type="text" value="{$row.table_bgimage|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-table_bgimage" class="btn btn-danger faupload" data-input-id="c-table_bgimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-table_bgimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-table_bgimage" class="btn btn-primary fachoose" data-input-id="c-table_bgimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-table_bgimage"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-table_bgimage"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Index_bgimage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-index_bgimage" class="form-control" size="50" name="row[index_bgimage]" type="text" value="{$row.index_bgimage|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-index_bgimage" class="btn btn-danger faupload" data-input-id="c-index_bgimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-index_bgimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-index_bgimage" class="btn btn-primary fachoose" data-input-id="c-index_bgimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-index_bgimage"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-index_bgimage"></ul>
        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Id_show_lover')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-id_show_lover" data-rule="required" class="form-control selectpicker" name="row[id_show_lover]">
                {foreach name="idShowLoverList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.id_show_lover"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('My_course_info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-my_course_info" class="form-control" name="row[my_course_info]" type="text" value="{$row.my_course_info|htmlentities}">
        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lover_course_info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lover_course_info" class="form-control" name="row[lover_course_info]" type="text" value="{$row.lover_course_info|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
